package affd.logic;

import com.sun.star.task.ErrorCodeIOException;

/**
 * A LogicException is a custom exception which is thrown by the Logic application.
 * 
 * @author Joteitti joteitti@cc.hut.fi
 *
 */
public class LogicException extends Exception {

	private static final long serialVersionUID = 8827901097178701564L;
	
	private Throwable cause; 

	/**
	 * Constructs a LogicException.
	 * 
	 * @param message Exception message.
	 */
	public LogicException(String message) {
		super(message);
	}
	
	/**
	 * Constructs a LogicException.
	 * 
	 * @param message Exception message.
	 * @param cause Exception cause.
	 */
	public LogicException(String message, Throwable cause) {
		super(message, cause);
		
		this.cause = cause;
	}
}
